package io.renren.modules.emp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 员工表
 * 
 * @author me
 * @email wei@gmail.com
 * @date 2022-04-07 11:29:27
 */
@Data
@TableName("emp")
public class EmpEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 员工号
	 */
	@TableId
	private Integer empno;
	/**
	 * 员工姓名

	 */
	private String ename;
	/**
	 * 员工职务
	 */
	private String job;
	/**
	 * 薪资
	 */
	private Double sal;
	/**
	 * 入职日期
	 */
	@JsonFormat(pattern = "YYYY-MM-dd")
	private Date hiredate;
	/**
	 * 奖金
	 */
	private Double comm;
	/**
	 * 部门编号
	 */
	private Integer deptno;
	/**
	 * 
	 */
	private Integer location;
	/**
	 * 
	 */
	private Integer managerId;
	/**
	 * 
	 */
	private Integer age;
	/**
	 *
	 *
	 */
	private String gender;
     @TableField(exist = false)
	private String cityName;
	@TableField(exist = false)
	private String deptname;

}
